//
//  UIViewController+BarButtonItemAction.h
//  FM_Project
//
//  Created by chenzm on 2019/8/7.
//  Copyright © 2019 DL. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIBarButtonItem+SXCreate.h"

@interface UIViewController (BarButtonItemAction)

@property(strong,nonatomic)UIBarButtonItem *leftBarButtonItem;
@property(strong,nonatomic) UIBarButtonItem *rightBarButtonItem;


//正常lfet
-(void)defLeftBarImage:(NSString*)image;
-(void)defLeftBarTitle:(NSString*)title;
//正常right
-(void)defRightBarTitle:(NSString*)title;
-(void)defRightBarImage:(NSString*)image;

//left-right action
-(void)touchNavLeftBtn:(UIButton *)sender;
-(void)touchNavRightBtn:(UIButton *)sender;

-(void)defRightBarTitle:(NSString*)title color:(UIColor *)titleColor;
-(void)defLeftBarTitle:(NSString*)title color:(UIColor *)titleColor;




-(void)jj_scrollView:(UIScrollView*)scrollView
        sontentInset:(UIEdgeInsets)insets;

/**
 导航栏右侧按钮设置：最多添加三个
 @param backImageArr    图片数组
 @param negativeSpace_w 间距
 @param action          方法
 */
- (void)jj_rightNaviWithImageArr:(NSArray *)backImageArr negativeSpace:(CGFloat)negativeSpace_w showOriginal:(BOOL)isShowOriginalColor action:(SEL)action;

/**
 导航栏左侧按钮添加设置：最多添加两个
 @param backImageArr    图片名称数组
 @param negativeSpace_w 距离左侧间距，默认-10：负值可以减小按钮之间的间距
 @param action          响应方法
 */
-(void)jj_leftNaviBtnWithImageArr:(NSArray *)backImageArr negativeSpace:(CGFloat)negativeSpace_w showOriginal:(BOOL)isShowOriginalColor action:(SEL)action;

@end

